<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org" >

<head>
    <meta charset="utf-8">
    <title>网上商城-个人中心</title>
    <!--<link rel="shortcut icon" th:href="@{/static/imgages/favicon.ico}" type="image/x-icon">-->
    <link rel="stylesheet" type="text/css" th:href="@{../my/iconfont.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{../my/new_file.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{../my/iconfont.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{../my/index.css}" />
    <link rel="stylesheet" type="text/css" th:href="@{../my/personal.css}" />
    <script th:src="@{my/jquery-1.11.1.min.js}" type="text/javascript" charset="utf-8"></script>
    <script th:src="@{../my/public-bombs.js?t=14444111}" type="text/javascript" charset="utf-8"></script>
    <script th:src="@{my/personal.js}" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" src="/js/jquery-2.1.4.min.js"  charset="utf-8"></script>
    <script type="text/javascript" src="/js/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
    <link type="text/css" rel="stylesheet" href="/js/bootstrap-3.3.7-dist/css/bootstrap.min.css">
    <script type="text/javascript" src="http://fengyuanchen.github.io/distpicker/js/distpicker.js"></script>
</head>
<body>
<div class="problic-page">
<!--    <img src="./img/head/logo.png" alt="logo" style="position: absolute;top: 8%;left: 12%;">
    <h1>欢迎登陆网上商城</h1>-->
    <div class="header-out">

        <html lang="en">
        <head>
            <meta charset="UTF-8">
            <!--<link rel="shortcut icon" href="/static/imgages/favicon.ico" type="image/x-icon">
-->

            <link rel="stylesheet" type="text/css" href="http://static.mayikt.com/swiper.min.css?t=29f06f65-145c-4885-882c-1b74ebd02d63"/>

            <link rel="stylesheet" type="text/css" href="http://static.mayikt.com/new_file.css?t=29f06f65-145c-4885-882c-1b74ebd02d63"/>

            <link rel="stylesheet" type="text/css" href="http://static.mayikt.com/iconfont.css?t=29f06f65-145c-4885-882c-1b74ebd02d63"/>

            <link rel="stylesheet" type="text/css" href="http://static.mayikt.com/new_personal.css?t=29f06f65-145c-4885-882c-1b74ebd02d63"/>

            <link rel="stylesheet" type="text/css" th:href="@{../my/index_css_2019_08_22_001.css-t=a416907d-a8f1-4b4b-8086-71a61b2c051c.css}"/>

            <script src="http://static.mayikt.com/jquery-1.11.1.min.js?t=29f06f65-145c-4885-882c-1b74ebd02d63" type="text/javascript" charset="utf-8"></script>
            <script src="http://static.mayikt.com/jquery.SuperSlide.2.1.3.js?t=29f06f65-145c-4885-882c-1b74ebd02d63" type="text/javascript" charset="utf-8"></script>
            <script src="http://static.mayikt.com/swiper.min.js?t=29f06f65-145c-4885-882c-1b74ebd02d63" type="text/javascript" charset="utf-8"></script>
            <script src="http://static.mayikt.com/public-bomb-pc-index-2020-002.js?t=29f06f65-145c-4885-882c-1b74ebd02d63" type="text/javascript" charset="utf-8"></script>
            <script src="http://static.mayikt.com/PCindex2020-002.js?t=29f06f65-145c-4885-882c-1b74ebd02d63" type="text/javascript" charset="utf-8"></script>

        </head>
        <body>

        <script>

            /*   var myVar = setInterval(myTimer, 3000);
               function myTimer() {
                   $.ajax({
                       //几个参数需要注意一下
                       type: "POST",//方法类型
                       contentType: "application/json;charset=UTF-8",
                       dataType: "json",//预期服务器返回的数据类型
                       url: "/user/findByWeiXinOPendId",//url
                       data: JSON.stringify({
                       "userId":userId
                       }),
                       success: function (result) {
                           var json = eval(result);
                           console.log(json); //打印服务端返回的数据(调试用)
                           if (json.code == 200) {
                               alert("ok")
                               //关闭弹二维码

                           }
                           ;
                           if (json.code == 500) {
                               var data = json.msg;
                               alert(data)
                               //继续线上二维码

                           }
                           ;
                       },

                   });


               }*/


            function myTimer() {
                $.ajax({
                    //几个参数需要注意一下
                    type: "POST",//方法类型
                    contentType: "application/json;charset=UTF-8",
                    dataType: "json",//预期服务器返回的数据类型
                    url: "/user/findByWeiXinOPendId",//url
                    data: JSON.stringify({
                        "userId":userId
                    }),
                    success: function (result) {
                        var json = eval(result);
                        console.log(json); //打印服务端返回的数据(调试用)
                        if (json.code == 200) {
                            alert("ok")
                            //关闭弹二维码

                        }
                        ;
                        if (json.code == 500) {
                            var data = json.msg;
                            alert(data)
                            //继续线上二维码

                        }
                        ;
                    },

                });


            }





            function ssoLogin() {
                var indexReturnUrl = $("#indexReturnUrl").val();
                var courseListReturnUrl = $("#courseListReturnUrl").val();

                var username = $("#username").val();
                if (username == null || username == "") {
                    $("#num-phone-right-phone-num").css("visibility", "visible");
                    return;
                }
                var password = $("#password").val();
                if (password == null || password == "") {
                    return;
                }

                $.ajax({
                    //几个参数需要注意一下
                    type: "POST",//方法类型
                    contentType: "application/json;charset=UTF-8",
                    dataType: "json",//预期服务器返回的数据类型
                    url: "/sso/user/login",//url
                    data: JSON.stringify({
                        "userName": $("#username").val(),
                        "password": $("#password").val()
                    }),
                    success: function (result) {
                        var json = eval(result);
                        if (json.code == 200) {
                            var userId=json.data.userId;
                            var weiXinToken=json.data.weiXinToken;
                            var weixinOpenId=json.data.weixinOpenId;


                            if (typeof(weixinOpenId) != "undefined"){
                                //关闭登录宽
                                $(".header-load-concent-1").hide();
                                settimeWeixin(userId);
                                $(".weiXinToken").attr("src","https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket="+weiXinToken);
                                //显示微信二维码
                                WeChatShow();

                            } else{
                                if (indexReturnUrl != null || indexReturnUrl != "" ) {
                                    window.location.href = indexReturnUrl;
                                } else if (courseListReturnUrl != null || courseListReturnUrl != "") {
                                    window.location.href = courseListReturnUrl;
                                } else {
                                    window.location.href = "/";
                                }
                            }

                        }
                        ;
                        if (json.code == 500) {
                            $('.logo-weixin').click();
                            $("#loginErrorInfo").css("visibility", "visible");

                        }
                        ;
                    },

                });
            }




            /*   function sendeTimeWeixin(userId) {
                   settimeWeixin(userId);
               }
          */
            function settimeWeixin(userId) { //发送验证码倒计时

                var indexReturnUrl = $("#indexReturnUrl").val();
                var courseListReturnUrl = $("#courseListReturnUrl").val();

                $.ajax({
                    //几个参数需要注意一下
                    type: "POST",//方法类型
                    contentType: "application/json;charset=UTF-8",
                    dataType: "json",//预期服务器返回的数据类型
                    url: "/user/findByWeiXinOPendId",//url
                    data: JSON.stringify({
                        "userId": userId
                    }),
                    success: function (result) {
                        var json = eval(result);
                        if (json.code == 200) {
                            if (indexReturnUrl != null || indexReturnUrl != "") {
                                window.location.href = indexReturnUrl;
                            } else if (courseListReturnUrl != null || courseListReturnUrl != "") {
                                window.location.href = courseListReturnUrl;
                            } else {
                                window.location.href = "/";
                            }
                        }
                        ;
                        if (json.code == 500) {
                        }
                        ;
                    },

                });




                setTimeout(function() {
                    settimeWeixin(userId)
                }, 2000)
            }



        </script>

        <input type="hidden" id="indexReturnUrl" name="indexReturnUrl" value="">
        <input type="hidden" id="courseListReturnUrl" name="courseListReturnUrl" value="">


        <header class="clearfix">
            <a href="/" class="logo" name="miao">
                <img src="http://static.mayikt.com/2021_logo.png"/>
            </a>

            <form method="get" id="headerformSearch"
                  onsubmit="return toSearch()" action="/course/ajax/saveSearchWords">
                <input type="text"  value="" autocomplete=off id="courseName" name="courseName"><!--id="top-search-input"-->
                <button class="search"><i class="iconfont">&#xe62b;</i></button>
            </form>

            <!-- 登录部分 -->




            <a href="#" class="vip">

                <img class="vip-pic" src="https://img2.baidu.com/it/u=3355464299,584008140&fm=26&fmt=auto&gp=0.jpg"/>




            </a>
            <div class="showPersionMsg">
                <div class="vip-msg clearfix">
                    <div class="clearfix" style="line-height: 50px; ">

                        <img class="vip-msg-pic" src="/static/20190613140750.png" style="height: 50px; border-radius: 50%;">


                        <span         style="color: #1E1E1E;">

                        <span id="myphone"></span>
                </span>
                    </div>

                    <div class="vip-msg-in vip-msg-in4">
                        <a href="index.html">返回首页</a>
                    </div>
                    <div class="vip-msg-in vip-msg-in4">
                        <a href="login.html">切换账号</a>
                    </div>
                </div>
            </div>


        </header>


        <!-- 提示，另一处登录，重新登录 -->



        <!-- 公共部分，登录时遮罩板和登录框 -->
        <div class="motaiceng">

        </div>
        <!-- 登录和注册 -->
        <div class="header-load-concent header-load-concent-1 clearfix" style="height:auto!important;">
            <h1 style="text-align: center">
                <span class="load-span" style="margin-left: 0">登录/注册/绑定已有账户</span>
            </h1>
            <!-- 登录 -->
            <div class="header-load-concent-in">
                <div class="zhece_erweima">
                    <img class="zhuce_erweima_pic" id="zhuce_erweima_pic" src=""
                         style="display: block;margin:auto;height: 250px;width: 250px;"/>
                    <input type="hidden" name="registerOpenIdToken" class="registerOpenIdToken" id="registerOpenIdToken"
                           value=""/>
                    <p style="text-align:center;margin-bottom:14px;color:#e82f50;">（扫码关注公众号登陆注册）</p>
                </div>

                <div class="header-loading" style="display: none" onkeydown="keyLogin();">
                    <div class="header-loading-input header-loading-input1">
                        <input class="inp-load inp-load1 clear-empty" type="text" id="username" value="" autocomplete=off
                               placeholder="请输入手机号/邮箱"/>
                    </div>
                    <!-- <div class="inp-load-line1"></div> -->
                    <span class="num-phone right-phone-num" id="num-phone-right-phone-num">请输入正确手机号码或邮箱!</span>

                    <div class="header-loading-input header-loading-input2">
                        <input class="inp-load inp-load2 clear-empty" type="password" id="password" autocomplete=off
                               placeholder="请输入密码"/>
                    </div>
                    <!-- <div class="inp-load-line2"></div> -->
                    <span class="num-possword ">请输入6或6位以上位密码!</span>
                    <div class="load-password clearfix">
                        <label>
                            <input type="checkbox" id="checkbox" value="" autocomplete=off/>
                            <span class="rember-possword">记住密码</span>
                        </label>
                        <span class="forget-possword"><a id="forget-possword" href="#">忘记密码?</a></span>
                    </div>
                    <span class="loginErrorInfo" id="loginErrorInfo" style="color: red;font-size: 12px;visibility: hidden">用户名或者密码错误!</span>


                    <button type="button" class="btn-load" onclick="ssoLogin()" id="btn-load">登录</button>
                </div>
                <!-- 注册部分 -->
                <div class="header-zhuce" style="display: none">

                    <div class="main_zhuce" style="display: none">
                        <div class="zhuce-first">

                            <div class="header-loading-input header-zhuce-input1">
                                <input class="zhece-email zhuce-public clear-empty" type="text" id="u-email-reg" value=""
                                       placeholder="请输入手机号" autocomplete=off/>
                            </div>
                            <span class="num-phone right-email" style="height: 20px;display: block;"></span>

                            <div class="header-loading-input header-zhuce-input6">
                                <input class="zhece-idcode zhuce-public" type="text" id="regImageCode" name="regImageCode"
                                       value="" placeholder="请输入验证码"/>
                                <img style="width: 110px;height: 48px;float: right;margin-right: 5px"
                                     src="/sso/login/getLoginVerify" onclick="getLoginVerify(this);">
                            </div>
                            <span class="num-phone">验证码输入有误!</span>
                            <input id="registerOpenId" name="registerOpenId" class="registerOpenId" type="hidden" value=""/>
                            <div class="send-msg send-msg2" style="margin-top: 10px">
                                <input type="text" class="find-p-reg2" id="send-message" value="" placeholder="请发送验证码"/>
                                <button type="button" class="send-btn-duanxin" id="send-btn"
                                        onclick="sendLoginPasswordMobileMsg()">发送短信
                                </button>
                            </div>
                            <span class="num-phone">短信验证码有误</span>

                            <span class="regErrorInfow" style="height:22px;color: red;display: block;"></span>
                            <div id="registeErrorInfo"
                                 style="color: red; font-size: 13px; line-height: 30px;height: 30px; ">手机短信绑定，若手机号码未注册，我们将为您自动注册
                            </div>
                            <button type="button" id="btn-load"  onclick="ssoRegister2()">注册/关联</button>

                        </div>
                    </div>
                </div>
                <div class="load-zhuce-footer">
                    <div class="line"></div>
                    <!-- 弹框底部 -->
                    <a href="/toLoginOauthHtml?oauthChannelId=oauth_qq&callBackUrl=" target="_blank"
                       class="load-qq"><img
                            src="/static/imgages/index-img/QQ@2x.png"/><br><span>QQ登录</span></a>
                    <a href="#" class="logo-weixin"><img
                            src="http://static.mayikt.com/zhmm2020429.png"/><br><span>账号登录</span></a>
                    <div class="line">
                    </div>
                </div>


            </div>

        </div>
        <!-- 找回密码 -->
        <div class="ddd">
            <h1>
                <span class="find-possword-top">找回密码</span>
                <span class="load-del">×</span>
            </h1>
            <div class="header-load-concent-in">
                <div class="find-possword-con">
                    <div class="send-msg send-msg1">
                        <input class="zhece-phone find-p" type="text" id="right-phone" value="" placeholder="请输入手机号"/>
                    </div>
                    <span class="num-phone right-phone">请输入正确的手机号!</span>

                    <div class="send-msg send-msg5">
                        <input type="text" class="find-p" id="send-msg-code" value="" placeholder="请输入验证码"/>
                        <img style="width: 112px;height: 48px;float: right;margin-right: 5px;" src="/sso/login/getLoginVerify"
                             onclick="getLoginVerify(this);">
                    </div>
                    <span class="num-phone ">请输入正确验证码</span>

                    <div class="send-msg send-msg2">
                        <input type="text" class="find-p-send-message" id="send-message" value="" placeholder="请输入短信验证码"/>
                        <button type="button" id="send-btn" class="send-btn-duanxin" onclick="sendPasswordMobileMsg()">
                            发送短信
                        </button>
                    </div>
                    <span class="num-phone">短信验证码有误</span>
                    <div class="send-msg send-msg3">
                        <input class="zhece-password zhece-password2 find-p" type="password" id="zhece-password" value=""
                               placeholder="请输入密码"/>
                    </div>
                    <span class="num-phone right-possword">请输入6-16位密码</span>
                    <div class="send-msg send-msg4">
                        <input class="zhece-password-r zhece-password-rrr find-p" type="password" id="zhece-password-r" value=""
                               placeholder="请输入确认密码"/>
                    </div>
                    <span class="num-phone right-same right-same22">两次输入不一致哦!</span>

                    <span id="findLoginUserPasswordErrorInfo" style="color: red; font-size: 12px;"></span>

                    <button type="button" id="find-possword" onclick="findLoginUserPassword()">找回密码</button>
                </div>
            </div>
        </div>


        <script>


            function ssoRegister1() {
                var emailRegister = $("#u-email-reg").val();
                var imageCodeRegister = $("#regImageCode").val();

                if (emailRegister == "") {
                    $("#registeErrorInfo").html("请输入正确账户!");
                    return;
                }
                $("#registeErrorInfo").html("");


                if (imageCodeRegister == "") {
                    $("#registeErrorInfo").html("请输入图形验证码!");
                    return;
                }
                $("#registeErrorInfo").html("");

                $.ajax({
                    //几个参数需要注意一下
                    type: "POST",//方法类型
                    contentType: "application/json;charset=UTF-8",
                    dataType: "json",//预期服务器返回的数据类型
                    url: "/sso/user/ssoRegisterMobile",//url
                    // data:{"mobile":$("#mobile").val(),"password":$("#password").val()},  $('#loginUserFrom').serialize(),
                    data: JSON.stringify({
                        "userName": emailRegister,
                        "imageCode": imageCodeRegister
                    }),
                    success: function (result) {
                        var json = eval(result);
                        if (json.code == 200) {
                            sendemail();
                            $('.zhuce-first').hide()
                            $('.zhuce-second').show()
                            $('.load-zhuce-footer').hide()
                            $("#userMobile").html(json.msg);
                            faSongDuanxin2();


                        }
                        ;
                        if (json.code == 500) {
                            var data = json.msg;
                            $("#registeErrorInfo").html(data);


                        }
                        ;

                    }
                });

            }


            function ssoRegister2() {
                var mobileRegister = $("#u-email-reg").val();
                // var imageCodeRegister = $("#regImageCode").val();
                var mobileCodeRegister = $(".find-p-reg2").val();
                // var passwordRegister = $("#u-password-reg").val();
                var registerOpenId = $("#registerOpenId").val();

                $.ajax({
                    //几个参数需要注意一下
                    type: "POST",//方法类型
                    contentType: "application/json;charset=UTF-8",
                    dataType: "json",//预期服务器返回的数据类型
                    url: "/sso/user/register",//url
                    // data:{"mobile":$("#mobile").val(),"password":$("#password").val()},  $('#loginUserFrom').serialize(),
                    data: JSON.stringify({
                        "mobile": mobileRegister,
                        "zhucecode": mobileCodeRegister,
                        // "password": passwordRegister,
                        "wxopenId":registerOpenId
                    }),
                    success: function (result) {
                        var json = eval(result);
                        if (json.code == 200) {
                            window.location.href = "/";
                        }
                        ;
                        if (json.code == 500) {
                            var data = json.msg;
                            $(".regErrorInfow").html(data);
                        }
                        ;

                    }
                });


            }


            // 发行短信倒计时
            var countdown = 60;

            /*    $('#send-btn').click(function() {
                    sendemail()
                })*/

            function sendemail() {
                var obj = $(".send-btn-duanxin");
                settime(obj);
            }

            function settime(obj) { //发送验证码倒计时
                if (countdown == 0) {
                    obj.attr('disabled', false);
                    //obj.removeattr("disabled");
                    obj.html("发送短信");
                    countdown = 60;
                    return;
                } else {
                    obj.attr('disabled', true);
                    obj.html("重新发送(" + countdown + ")");
                    countdown--;
                }
                setTimeout(function () {
                    settime(obj)
                }, 1000)
            }

            //发送短信验证码 找回密码
            function sendPasswordMobileMsg() {

                var mobile = $("#right-phone").val();
                var imageCode = $("#send-msg-code").val();

                if (mobile == "" || mobile == null || mobile.length != 11) {
                    // $("#registeInfo").html("请输入验证码!");
                    $("#findLoginUserPasswordErrorInfo").html("请输入正确手机号!");
                    return;
                }

                if (imageCode == "" || imageCode == null) {
                    // $("#registeInfo").html("请输入验证码!");
                    $("#findLoginUserPasswordErrorInfo").html("请输入正确验证码!");
                    return;
                }

                faSongDuanxinPwd();


            }

            //发送短信验证码注册
            function sendLoginPasswordMobileMsg() {

                var mobile = $("#u-email-reg").val();
                var imageCode = $("#regImageCode").val();

                if (mobile == "" || mobile == null || mobile.length != 11) {
                    // $("#registeInfo").html("请输入验证码!");
                    $("#findLoginUserPasswordErrorInfo").html("请输入正确手机号!");
                    return;
                }

                if (imageCode == "" || imageCode == null) {
                    // $("#registeInfo").html("请输入验证码!");
                    $("#findLoginUserPasswordErrorInfo").html("请输入正确验证码!");
                    return;
                }

                faSongDuanxin2();


            }

            //找回密码
            function faSongDuanxin1() {
                var mobile = $("#right-phone").val();


                $.ajax({
                    //几个参数需要注意一下
                    type: "POST",//方法类型
                    contentType: "application/json;charset=UTF-8",
                    dataType: "json",//预期服务器返回的数据类型
                    url: "/sso/user/sendLoginPasswordMobileCode",//url
                    // data:{"mobile":$("#mobile").val(),"password":$("#password").val()},  $('#loginUserFrom').serialize(),
                    data: JSON.stringify({
                        "mobile": mobile
                    }),
                    success: function (result) {
                        var json = eval(result);
                        if (json.code == 200) {
                            $("#findLoginUserPasswordErrorInfo").html(json.msg);
                            /*sendemail();*/
                        }
                        ;
                        if (json.code == 500) {
                            var data = json.msg;
                            $("#findLoginUserPasswordErrorInfo").html(data);

                        }
                        ;

                    }
                });


            }

            //注册发送短信
            function faSongDuanxinPwd() {
                var mobile = $("#right-phone").val();
                var imageCode = $("#send-msg-code").val();

                $.ajax({
                    //几个参数需要注意一下
                    type: "POST",//方法类型
                    contentType: "application/json;charset=UTF-8",
                    dataType: "json",//预期服务器返回的数据类型
                    url: "/sso/user/sendRegMobileCodePwd",//url
                    data: JSON.stringify({
                        "mobile": mobile,
                        "zhucecode": imageCode
                    }),
                    success: function (result) {
                        var json = eval(result);
                        if (json.code == 200) {
                            $("#registeErrorInfo").html(json.msg);
                            sendemail();
                        }
                        ;
                        if (json.code == 500) {
                            var data = json.msg;
                            $("#findLoginUserPasswordErrorInfo").html(data);

                        }
                        ;

                    }
                });


            }

            //注册发送短信
            function faSongDuanxin2() {
                var mobile = $("#u-email-reg").val();
                var imageCode = $("#regImageCode").val();

                $.ajax({
                    //几个参数需要注意一下
                    type: "POST",//方法类型
                    contentType: "application/json;charset=UTF-8",
                    dataType: "json",//预期服务器返回的数据类型
                    url: "/sso/user/sendRegMobileCode",//url
                    data: JSON.stringify({
                        "mobile": mobile,
                        "zhucecode": imageCode
                    }),
                    success: function (result) {
                        var json = eval(result);
                        if (json.code == 200) {
                            $("#registeErrorInfo").html(json.msg);
                            sendemail();
                        }
                        ;
                        if (json.code == 500) {
                            var data = json.msg;
                            $("#registeErrorInfo").html(data);

                        }
                        ;

                    }
                });


            }


            function findLoginUserPassword() {

                var mobile = $("#right-phone").val();
                var imageCode = $("#send-msg-code").val();
                var pwdCodeMsg = $(".find-p-send-message").val();
                var password = $("#zhece-password").val();
                var passwordl = $("#zhece-password-r").val();

                $.ajax({
                    //几个参数需要注意一下
                    type: "POST",//方法类型
                    contentType: "application/json;charset=UTF-8",
                    dataType: "json",//预期服务器返回的数据类型
                    url: "/sso/user/findLoginUserPassword",//url
                    // data:{"mobile":$("#mobile").val(),"password":$("#password").val()},  $('#loginUserFrom').serialize(),
                    data: JSON.stringify({
                        "mobile": mobile,
                        "pwdCodeMsg": pwdCodeMsg,
                        "password": password,
                        "passwordl": passwordl,
                        "imageCode": imageCode
                    }),
                    success: function (result) {
                        var json = eval(result);
                        if (json.code == 200) {
                            window.location.href = "/";
                        }
                        ;

                        if (json.code == 500) {
                            var data = json.msg;
                            $("#findLoginUserPasswordErrorInfo").html(data);
                        }
                        ;

                    }
                });


                function sendemail() {
                    var obj = $("#send-btn");
                    settime(obj);
                }

                function settime(obj) { //发送验证码倒计时
                    if (countdown == 0) {
                        obj.attr('disabled', false);
                        //obj.removeattr("disabled");
                        obj.html("发送短信");
                        countdown = 60;
                        return;
                    } else {
                        obj.attr('disabled', true);
                        obj.html("重新发送(" + countdown + ")");
                        countdown--;
                    }
                    setTimeout(function () {
                        settime(obj)
                    }, 1000)
                }

            }

            //pc快捷登陆
            function keyLogin() {
                if(event.keyCode==13){
                    document.getElementById("btn-load").click();
                }
            }

            //获取验证码
            function getLoginVerify(obj) {
                obj.src = "/sso/login/getLoginVerify?" + Math.random();
            }

        </script>



        <!-- 微信公众号 -->
        <div class="WeChatOfficial_Mask">
            <div class="WeChatOfficial">
                <img class="weiXinToken" src="" >
            </div>
        </div>
        <style>
            .WeChatOfficial_Mask{
                display: none;
                height: 100%;
                width: 100%;
                position: fixed;
                top:0;
                left: 0;
                background-color: rgba(0,0,0,0.6);
                z-index: 9999999;
            }
            .WeChatOfficial{
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                margin: auto;
                width:400px;
                height:460px;
                border-radius:11px;
                overflow: hidden;
                background: url("http://static.mayikt.com/tc1111.png") no-repeat;
                background-size:cover;
            }
            .WeChatOfficial img{
                display: block;
                margin: auto;
                margin-top: 106px;
                height: 220px;
                width: 220px;
            }
        </style>
        <script>


            function  WeChatShow(){
                $('.WeChatOfficial_Mask').show()
            }
            function WeChatHide(){
                $('.WeChatOfficial_Mask').hide()
            }
        </script>

        </body>
        </html>
    </div>

    <div class="personal clearfix">
        <div class="personal-head-con">
            <div class="personal-header">
                <form  id="myForm1">
                <div class="personal-header-pic-t">
                    <!--src="/static/imgages/20190613140750.png"-->
                    <img id="personal-header-pic" src="https://img2.baidu.com/it/u=3355464299,584008140&fm=26&fmt=auto&gp=0.jpg" name="img" alt="头像"/>

                    <div class="personal-header-pic-animate">
                        更换头像
                      <!--  <input  type="file" id="file-Portrait"  class="form-control"   name="file" />-->
                    </div>
                </div>



                <h1  style="color: #1E1E1E;"><span id="phone"></span></h1>

                <p id="personal-email">Email:<span id="email"></span></p>
                </form>
            </div>

            <h3 id="personal-tittle">个人中心</h3>
            <div class="personal-animate"></div>
            <ul class="personal-centre">
                <li class="personal-centre-li-active"><span><i class="iconfont">&#xe60f;</i>个人信息</span><i class="iconfont iconfont-left">&#xe613;</i></li>
                <li><span><i class="iconfont">&#xe60c;</i>收货地址</span><i class="iconfont iconfont-left">&#xe613;</i></li>
            </ul>
        </div>
        <div class="personal-concent personal-masg">
            <div class="personal-concent-top clearfix">
                <h6 class="clearfix">
                    <span id="bgc"></span>
                    <span>个人信息</span>
                </h6>
                <span id="edit-btn" onclick="chakan()">编辑</span>
            </div>
            <ul>
                <li>
                    <h4>昵称</h4>
                    <h5><span id="nickname"></span></h5>
                </li>
                <li>
                    <h4>姓名</h4>
                    <h5><span id="name"></span></h5>
                </li>
                <li>
                    <h4>年龄</h4>
                    <h5><span id="age"></span></h5>
                </li>
                <li>
                    <h4>性别</h4>
                    <h5>
                        保密
                    </h5>
                </li>
                <li>
                    <h4>个性签名</h4>
                    <h5><span id="myInfo"></span></h5>
                </li>
            </ul>


        </div>
        <div class="personal-concent personal-bind">
            <div class="personal-concent-top clearfix">
                <h6 class="clearfix">
                    <span id="bgc"></span>
                    <span>收货地址管理</span>
                </h6>
                <button type="button" id="personal-bind-change"  data-toggle="modal"  data-target="#myModal">新增地址</button>

            </div>
            <ul id="asd">


                <li class="clearfix">
                 <!--   <h4>收获地址</h4>
                    <p><span id="sname"></span>,<span id="sphone"></span>175****1861 已绑定 ，但
                        <i>已验证</i>

                        <br>手机号用于快速登录,找回密码等！</p>-->
                    <p><span id="con0sname"></span> ,<span id="con0sphone"></span><br>
                        <span id="con0saddress"></span><br>
                        <button type="button" id="personal-bind-change2" class="handset-change">删除</button>
                    </p>

                    <button type="button" id="personal-bind-change" class="handset-change">更换收货地址</button>

                </li>
                <li class="clearfix personal-bind-email">
                  <!--  <h4>邮箱绑定</h4>
                    <p><span>邮箱</span>未填写邮箱 已绑定 ，但
                        <i>已验证</i>


                        <br>可用邮箱加密码登录蚂蚁课堂，可用邮箱找回密码</p>-->
                    <p><span id="con1sname"></span> ,<span id="con1sphone"></span><br>
                        <span id="con1saddress"></span>
                    </p>
                    <button type="button"  class="change-Password">修改密码</button>
                </li>
                <li class="clearfix personal-bind-password ">
                   <!-- <h4>密码</h4>
                    <p><span>密码</span>已设置<br>用于保护账号信息和登录安全</p>-->
                    <p><span id="con2sname"></span> ,<span id="con2sphone"></span><br>
                        <span id="con2saddress"></span>
                    </p>
                    <button type="button" id="personal-bind-phone" class="change-Password">更改用户地址</button>

                </li>
                <li class="clearfix personal-bind-socialcontact">
                    <div class="clearfix">
                        <h4>社交账号</h4>
                        <p><span>社交账号</span><br>绑定第三方账号，可以一键登录，还可以将内容同步到以下平台，与更多好友分享</p>
                    </div>
                </li>
            </ul>
        </div>
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="myModalLabel">收货人信息</h4>
                    </div>
                    <div class="modal-body">
                        <form id="myForm2">
                            收货人姓名：<input type="text" class="form-control" name="consignee_name" id="consignee_name"   placeholder="收货人姓名">
                            收货人电话：<input type="text" class="form-control" name="consignee_phone" id="consignee_phone"   placeholder="收货人电话">
                            收货人地址：
                            <div data-toggle="distpicker">
                                <select id="seng" data-province="---- 选择省 ----"></select>
                                <select id="shi" data-city="---- 选择市 ----"></select>
                                <select id="xian" data-district="---- 选择区 ----" ></select><br>
                                <textarea id="xiang"  onblur="addconsigneevalue()"></textarea>
                                <!--<input type="text" id="xiang" onblur="">-->
                                <input type="hidden" id="consignee_address" name="consignee_address">
                            </div>

                            <input type="hidden" id="proId">
                        </form>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <button type="button" class="btn btn-primary" onclick="addconsignee()">提交</button>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal -->
        </div>

        <div class="personal-concent personal-MyCollection">
            <div class="personal-concent-top clearfix">
                <h6 class="clearfix">
                    <span id="bgc"></span>
                    <span>我的收藏</span>
                </h6>
                <span id="personal-all-class">全部课程&nbsp;∨</span>
            </div>
            <ul>

                <li class="clearfix">
                    <img id="personal-MyCollection-class-img" src="/static/imgages/class-list/1_03.jpg" />
                    <div class="personal-MyCollection-con">
                        <h1>ELK+Kafka实现分布式日志收集</h1>
                        <h3>第一节-ELK实现分布式日志收集原理</h3>
                        <h5>上次观看时间 2019.8.24</h5>
                    </div>
                    <div class="personal-MyCollection-btn">
                        <button type="button" id="MyCollection-btn">收藏</button>
                        <button type="button" id="mylearn-btn">继续学习</button>
                    </div>
                </li>


            </ul>
        </div>
        <div class="personal-concent personal-MyCollection personal-class">
            <div class="personal-concent-top clearfix">
                <h6 class="clearfix">
                    <span id="bgc"></span>
                    <span>我的课程</span>
                </h6>
                <span id="personal-all-class">全部课程&nbsp;∨</span>
            </div>
            <ul>



            </ul>
        </div>
        <div class="personal-concent personal-message-centre">
            消息中心
        </div>
        <div class="personal-concent personal-answer">
            我的回答
        </div>

    </div>


    <!-- 个人中心编辑资料 -->
    <div class="motaiceng"></div>
    <div class="personal-editor">
        <h1>编辑个人信息<span id="myselfInfo"><i class="iconfont">&#xe61e;</i></span></h1>
        <form id="myForm">
        <div class="personal-nickname">
            <i>昵称：</i>
            <input type="text"  id="personal-nickname-text" class="updateUserinfoShowName" name="nickname"   /><br>
            <span id="updateUserinfoShowNameError" class="personal-null">

					</span>
        </div>
        <div class="personal-name">
            <i>姓名：</i>
            <input type="text" id="personal-name-text" class="updateUserinfoUserName" name="name"  /><br>
            <span id="updateUserinfoUserNameError" class="personal-null">

					</span>
        </div>
        <div class="personal-age">
            <i>年龄：</i>
            <input type="text" oninput="value=value.replace(/[^\d]/g,'')" maxlength="2" id="personal-age-text"   name="age" class="updateUserinfoAge"  /><br>
            <span id="updateUserinfoAgeError" class="personal-null">

					</span>
        </div>
        <div class="personal-sex">
            <i>性别：</i>
            <span class="personal-sex-radio" >
						<label><input type="radio" name="sex" value="保密" checked="checked" >保密</label>
						<label><input type="radio" name="sex" value="男"  >男</label>
						<label><input type="radio" name="sex" value="女"  >女</label>
					</span>
        </div>
        <div class="personal-signature clearfix">
            <i>个性签名：</i>
            <textarea id="personal-signature-text" name="myInfo">乘风破浪会有时 直挂云帆济沧海</textarea>
            <span class="personal-signature-text-num"><span id="personal-signature-text-num">15</span>/80</span>
        </div>
        </form>
        <div class="personal-btn">
            <button type="button" class="update-user-personal-define-true" onclick="upMyInfo()" id="personal-define">确定</button>
            <button type="button"  class="update-user-personal-define-no" id="personal-cancel">取消</button>
        </div>
    </div>


    <!-- 个人中心更换头像 -->
    <div class="personal-header-change">
        <h1>编辑个人信息<span id="personal-del" class="personal-del"><i class="iconfont">&#xe61e;</i></span></h1>
        <div class="img_show img_show1" >
            <img id="pcImg"  name="pcImg" class="personal-header-photo" src="/static/imgages/20190613140750.png" />

            <div id="Upload-header" STYLE="padding-left: 150px;">
                <span style="position: absolute;margin-left: 25px;margin-top: 5px;    margin-left: -109px; "  >上传头像</span>
                <input type="file" id="portraitFile"  class="upfile" accept="*/*" style="width: 80px;opacity: 0" >
               <!-- <input type="file" id="file-Portrait"  class="upfile" name="flie" accept="*/*" style="width: 80px;opacity: 0" >-->
            </div>

        </div>
        <div class="clearfix">

        </div>
        <div class="personal-btn">
            <button type="button" id="personal-define" class="personal-define" onclick="onChangeViewpoints()">确定</button>
            <button type="button" id="personal-cancel" class="personal-cancel">取消</button>
        </div>
    </div>

    <script type="text/javascript">
        $('.img_show').each(function() {
            var $this = $(this),
                btn = $this.find('.upfile'),
                img = $this.find('img');
            btn.on('change', function() {
                var file = $(this)[0].files[0],
                    imgSrc = $(this)[0].value,
                    url = URL.createObjectURL(file);
                if (!/\.(jpg|jpeg|png|JPG|PNG|JPEG)$/.test(imgSrc)) {
                    alert("请上传jpg或png格式的图片！");
                    return false;
                } else {
                    img.attr('src', url);
                    img.css({
                        'opacity': '1'
                    });
                    var formData=new FormData();
                    formData.append("file",document.getElementById("portraitFile").files[0]);

                    $.ajax({
                        data:formData,
                        type:"POST",
                        url:"upload",
                        cache:false,
                        contentType:false,
                        processData:false,
                        dataType:"json",
                        success: function (result) {
                            var json = eval(result);
                            console.log(json); //打印服务端返回的数据(调试用)
                            if (json.code == 200) {
                                $('.personal-header-photo').attr('src', json.msg);
                            };
                        }
                    });


                }

            });


        });

        function addconsignee(){
            var address="";
            address+=$("#seng").val()+" "+ $("#shi").val()+" "+$("#xian").val()+" "+$("#xiang").val();
            $("#consignee_address").val(address);
            $.ajax({
                url:"addressMy",
                type:"post",
                data:$("#myForm2").serialize(),
                dataType:"json",
                success:function(){
                    alert("成功")

                }
            })
            location.reload();
        }
        /*

                   $('#file-Portrait').fileinput({
                       language: 'zh', //设置语言
                       uploadUrl: "upload", //上传的地址
                       allowedFileExtensions : ['jpg', 'png','gif'],//接收的文件后缀,
                       maxFileCount: 100,
                       enctype: 'multipart/form-data',
                       showUpload: true, //是否显示上传按钮
                       showCaption: false,//是否显示标题
                       browseClass: "btn btn-primary", //按钮样式
                       previewFileIcon: "<i class='glyphicon glyphicon-king'></i>",
                       msgFilesTooMany: "选择上传的文件数量({n}) 超过允许的最大数值{m}！",

                       //dropZoneEnabled: false,//是否显示拖拽区域
                       //minImageWidth: 50, //图片的最小宽度
                       //minImageHeight: 50,//图片的最小高度
                       //maxImageWidth: 1000,//图片的最大宽度
                       //maxImageHeight: 1000,//图片的最大高度
                       //maxFileSize: 0,//单位为kb，如果为0表示不限制文件大小
                       //minFileCount: 0,
        //	     maxFileCount: 10, //表示允许同时上传的最大文件个数
        //	     enctype: 'multipart/form-data',
        //	     validateInitialCount:true,
        //	     previewFileIcon: "<i class='glyphicon glyphicon-king'></i>",
        //	     msgFilesTooMany: "选择上传的文件数量({n}) 超过允许的最大数值{m}！",
                   });
            function  shang(){
                var lu=$("#file-Portrait").val();
                var m="<img src='"+lu+"' height='160px' width='160px'>";

                $("#img_stc").html(m)

            }
        */


        /*function ChangeViewpoints() {
            $('#file-Portrait').fileinput({
                language: 'zh', //设置语言
                uploadUrl: "upload", //上传的地址
                allowedFileExtensions : ['jpg', 'png','gif'],//接收的文件后缀,
                maxFileCount: 100,
                enctype: 'multipart/form-data',
                showUpload: true, //是否显示上传按钮
                showCaption: false,//是否显示标题
                browseClass: "btn btn-primary", //按钮样式
                previewFileIcon: "<i class='glyphicon glyphicon-king'></i>",
                msgFilesTooMany: "选择上传的文件数量({n}) 超过允许的最大数值{m}！",

                //dropZoneEnabled: false,//是否显示拖拽区域
                //minImageWidth: 50, //图片的最小宽度
                //minImageHeight: 50,//图片的最小高度
                //maxImageWidth: 1000,//图片的最大宽度
                //maxImageHeight: 1000,//图片的最大高度
                //maxFileSize: 0,//单位为kb，如果为0表示不限制文件大小
                //minFileCount: 0,
//	     maxFileCount: 10, //表示允许同时上传的最大文件个数
//	     enctype: 'multipart/form-data',
//	     validateInitialCount:true,
//	     previewFileIcon: "<i class='glyphicon glyphicon-king'></i>",
//	     msgFilesTooMany: "选择上传的文件数量({n}) 超过允许的最大数值{m}！",
            });


        }

*/
        function onChangeViewpoints() {
            var picImg = $('#pcImg').attr('src');

            $.ajax({
                //几个参数需要注意一下
                type: "POST",//方法类型
                contentType: "application/json;charset=UTF-8",
                dataType: "json",//预期服务器返回的数据类型
                url: "/user/updataUserPcImg",//url
                // data:{"mobile":$("#mobile").val(),"password":$("#password").val()},  $('#loginUserFrom').serialize(),
                data: JSON.stringify({
                    "picImg": picImg
                }),
                success: function (result) {
                    var json = eval(result);
                    if (json.code == 200) {
                        window.location.href = "/user/pcUserInfo";
                    };

                }
            });


        }
        function updateQiNiuImg() {
            //alert(updateQiNiuImg);

        }

    </script>


    <!-- 邮箱验证 -->
    <div class="mailbox-Verification">
        <h1>验证邮箱<span id="personal-mailbox-del"><i class="iconfont">&#xe61e;</i></span></h1>
        <div class="personal-nickname">
            <i>请输入邮箱：</i>
            <input type="text" id="personal-nickname-text" class="personal-email-chang" ><br>
            <span id="personal-nickname-mull" class="personal-null">

					</span>
        </div>

        <div class="personal-nickname personal-yanzhengma">
            <i>请输入验证码：</i>
            <input type="text" id="personal-nickname-text" class="personal-imgcode-chang" >
            <img style="width: 98px; height: 38px; float: right; margin-right: 56px;"  src="/sso/login/getLoginVerify" onclick="getLoginVerify(this);">
            <br>
            <span id="personal-nickname-mull" class="personal-null">

					</span>
        </div>



        <div class="personal-nickname personal-yanzhengma">
            <i>请输入验证码：</i>
            <input type="text" id="personal-nickname-text" class="personal-emailcode-chang">
            <button type="button"  id="personal-yanzhengma-send-email" class="personal-yanzhengma-send">发送验证码</button>
            <br>
            <span id="personal-nickname-mull" class="personal-change-email-error-info" style="margin-left:140px;display: block;color: red;font-size: 14px;height: 30px;margin-top: 10px;  ">
					</span>
        </div>
        <div class="personal-btn">
            <button type="button" id="personal-define" class="personal-mailbox-btn">确定</button>
            <button type="button" id="personal-cancel" class="personal-mailbox-cancel">取消</button>
        </div>
    </div>

    <script>

        //确认邮箱验证
        $('.personal-mailbox-btn').on('click', function() {

            var email = $(".personal-email-chang").val();
            var imgCode = $(".personal-imgcode-chang").val();
            var emailCode = $(".personal-emailcode-chang").val();
            if (email=="") {
                $(".personal-change-email-error-info").html("邮箱不能为空!");
                return;
            }
            if (imgCode=="") {
                $(".personal-change-email-error-info").html("验证不能为空!");
                return;
            }
            if (emailCode=="") {
                $(".personal-change-email-error-info").html("邮箱验证码不能为空!");
                return;
            }
            $(".personal-change-email-error-info").html("");

            $.ajax({
                //几个参数需要注意一下
                type: "POST",//方法类型
                contentType: "application/json;charset=UTF-8",
                dataType: "json",//预期服务器返回的数据类型
                url: "/isChangEmail",//url
                // data:{"mobile":$("#mobile").val(),"password":$("#password").val()},  $('#loginUserFrom').serialize(),
                data: JSON.stringify({
                    "imageCode": imgCode,
                    "email":email,
                    "zhucecode":emailCode

                }),
                success: function (result) {
                    var json = eval(result);
                    if (json.code == 200) {
                        $('.motaiceng').hide();
                        $('.mailbox-Verification').hide();
                        window.location.href = "/user/pcUserInfo";

                    }
                    ;
                    if (json.code == 500) {
                        var data = json.msg;
                        $(".personal-change-email-error-info").html(data);

                    }
                    ;

                }
            });








        });

        //点击发送邮箱 验证
        $('#personal-yanzhengma-send-email').on('click', function() {
            var email = $(".personal-email-chang").val();
            var imgCode = $(".personal-imgcode-chang").val();

            if (email=="") {
                $(".personal-change-email-error-info").html("邮箱不能为空!");
                return;
            }

            if (imgCode=="") {
                $(".personal-change-email-error-info").html("验证不能为空!");
                return;
            }

            $(".personal-change-email-error-info").html("");

            $.ajax({
                //几个参数需要注意一下
                type: "POST",//方法类型
                contentType: "application/json;charset=UTF-8",
                dataType: "json",//预期服务器返回的数据类型
                url: "/sendEmail",//url
                // data:{"mobile":$("#mobile").val(),"password":$("#password").val()},  $('#loginUserFrom').serialize(),
                data: JSON.stringify({
                    "imageCode": imgCode,
                    "email":email
                }),
                success: function (result) {
                    var json = eval(result);
                    if (json.code == 200) {
                        var sendNum = 60
                        var send_Timer = null
                        var _this = $('#personal-yanzhengma-send-email')
                        _this.attr('disabled', true)
                        send_Timer = setInterval(function () {
                            if (sendNum == 0) {
                                sendNum = 60
                                _this.html('发送验证码')
                                clearInterval(send_Timer)
                                _this.attr('disabled', false)
                            } else {
                                sendNum--
                                _this.html('重新发送(' + sendNum + ')')
                            }
                        }, 500);

                    }
                    ;
                    if (json.code == 500) {
                        var data = json.msg;
                        $(".personal-change-email-error-info").html(data);

                    }
                    ;

                }
            });


        });





    </script>




    <!-- 验证手机号码 -->
    <div class="mobile-number-Verification mobile-number-Verification-con" style="display: none;">
        <h1>验证手机号码<span id="mobile-number-Verification-del"><i class="iconfont">&#xe61e;</i></span></h1>
        <div class="personal-nickname">
            <i>输入手机号码：</i>
            <input  oninput="value=value.replace(/[^\d]/g,'')"  type="text" id="personal-nickname-text" maxlength="11" class="yz-personal-mobile" value=""><br>
            <span id="personal-nickname-mull" class="personal-null">
					</span>
        </div>
        <div class="personal-nickname personal-mobile-yanzhengma">
            <i>图形验证码：</i>
            <input  maxlength="10"  type="text" id="personal-nickname-text" class="yz-personal-imgcode" value="">
            <img style="width: 98px; height: 38px; float: right; margin-right: 56px;"  src="/sso/login/getLoginVerify" onclick="getLoginVerify(this);">
            <br>
            <span id="personal-nickname-mull" class="personal-null" >
					</span>
        </div>

        <div class="personal-nickname personal-mobile-yanzhengma">
            <i>短信验证码：</i>
            <input type="text"  maxlength="4" oninput="value=value.replace(/[^\d]/g,'')" id="personal-nickname-text"  class="yz-personal-mobilecode" value="">
            <button type="button" class="personal-yanzhengma-send">发送验证码</button>
            <br>
            <span style=" height: 30px;color: red;font-size: 14px;display: block;width: 200px;margin: auto;margin-top: 10px;" id="personal-nickname-mull" class="yz-personal-null-error">

					</span>
        </div>

        <div class="personal-btn">
            <button type="button" id="personal-define" class="mobile-number-btn">确定</button>
            <button type="button" id="personal-cancel" class="mobile-number-cancel">取消</button>
        </div>
    </div>
    <script>
        //查询对象信息


        window.onload= function () {
            chakanDing()
            var  id=sessionStorage.getItem("name");
            if(id !=null){
                var id = sessionStorage.getItem("name");

                $.ajax({
                    url:"myInfo",
                    type:"post",
                    data:{user_name:id},
                    dataType:"json",
                    success:function(data){
                        console.log(data);
                        $("#name").html(data.name);
                        $("#myInfo").html(data.myInfo);
                        $("#nickname").html(data.nickname);
                        $("#age").html(data.age).append("岁");

                        $("#sex").html(data.sex);
                        $("#email").html(data.email);

                        var one=data.phone;
                        var two=one.substring(0,3);
                        var three=one.substring(7,12)
                        var cha=two+"****"+three;
                        $("#phone").html(cha);
                        $("#myphone").html(cha);

               /*         $("#personal-header-pic").html(data.img);*/
                        $("#file-Portrait").fileinput('refresh', {
                              initialPreview: "<img src="+data.img+" height='180px' width='150px' class='file-preview-image'>",
                          });

                        /*     if(data.contract_type==1){
                                 $("#contract_type").html("销售合同");
                             };
                             if(data.contract_type==2){
                                 $("#contract_type").html("招商合同");
                             };
                             if(data.contract_type==3){
                                 $("#contract_type").html("内部合同");
                             };*/
                    }

                })

            }else{
                alert("您还未登陆,目前无法查看订单列表.请登陆!!!!");
                location.href="login.html";
            }
         /*   chakan();*/




        }
        //查看收获地址
        function chakanDing(){
            $.ajax({
                url:"chakanDing",
                type:"post",
                dataType:"json",
                success:function(data){
                    var info="";


                    for (var i = 0; i < data.con.length; i++) {
                     info+="      <li class=\"clearfix\">\n" +
                         "                 <!--   <h4>收获地址</h4>\n" +
                         "                    <p><span id=\"sname\"></span>,<span id=\"sphone\"></span>175****1861 已绑定 ，但\n" +
                         "                        <i>已验证</i>\n" +
                         "\n" +
                         "                        <br>手机号用于快速登录,找回密码等！</p>-->\n" +
                         "                    <p><span id=\"con0sname\">"+data.con[i].consignee_name+"</span> ,<span id=\"con0sphone\">"+data.con[i].consignee_phone+"</span><br>\n" +
                         "                        <span id=\"con0saddress\">"+data.con[i].consignee_address+"</span><br>\n" +

                         "                    </p>\n" +
                         "\n" +
                         "                    <button type=\"button\" id=\"personal-bind-change\" class=\"handset-change\" onclick='shanDi("+data.con[i].consignee_id+")'>删除地址</button></button>\n" +
                         "\n" +
                         "                </li>"
                    }
                 $("#asd").html(info);
                 /*   $("#con0sname").html(data.con[0].consignee_name);
                    $("#con0sphone").html(data.con[0].consignee_phone);
                    $("#con0saddress").html(data.con[0].consignee_address);
                    $("#con1sname").html(data.con[1].consignee_name);
                    $("#con1sphone").html(data.con[1].consignee_phone);
                    $("#con1saddress").html(data.con[1].consignee_address);*/
                  /*  $("#personal-age-text").html(data.age).append("岁");
                    $("#personal-signature-text").html(data.myInfo);
                    $("#personal-sex-radio").val(data.sex);*/
                    /* if(data.sex=="保密"){
                         $("input[type=radio]").attr("checked",1)
                     }
                     if(data.sex=="男"){
                         $("input[type=radio]").attr("checked",2)
                     }
                     if(data.sex=="女"){
                         $("input[type=radio]").attr("checked",3)
                     }*/

                }
            })
        }


         //修改用户个人信息
        function upMyInfo(){
            $.ajax({
                url:"upMyinfo",
                type:"post",
                data:$("#myForm").serialize(),
                dataType:"json",
                success:function(){
                    alert("修改成功")
                    location.href="myself.html"
                },error:function (){
                    alert("修改成功")
                    location.href="myself.html"
                }
            })
        }

        function shanDi(consignee_id){
            $.ajax({
                url:"shanDi",
                type:"post",
                data:{consignee_id:consignee_id},
                dataType:"json",
                success:function(){
                   /* top.location = "http://localhost:9999/myself.html"*/

                }
            })
            location.reload();
        }
       //查看用户个人信息 进行修改
        function chakan(){
            $.ajax({
                url:"chakan",
                type:"post",
                dataType:"json",
                success:function(data){

                    $("#personal-name-text").val(data.name);

                    $("#personal-nickname-text").val(data.nickname);
                    $("#personal-age-text").val(data.age).append("岁");

                    $("#personal-signature-text").html(data.myInfo);

                    $("#personal-sex-radio").val(data.sex);


                   /* if(data.sex=="保密"){
                        $("input[type=radio]").attr("checked",1)
                    }
                    if(data.sex=="男"){
                        $("input[type=radio]").attr("checked",2)
                    }
                    if(data.sex=="女"){
                        $("input[type=radio]").attr("checked",3)
                    }*/

                }
            })
        }
        function  out(){
            sessionStorage.clear("name");
            location.href="index.html"
        }

        // 发送短信倒计时
        $('.personal-yanzhengma-send').on('click', function() {

            var mobile = $(".change-new-mobile2").val();
            var imgCode = $(".yz-personal-imgcode").val();

            if (mobile=="") {
                $(".yz-personal-null-error").html("请输入手机号码!");
                return;
            }
            if (imgCode=="") {
                $(".yz-personal-null-error").html("请输入图形验证码!");
                return;
            }

            $.ajax({
                //几个参数需要注意一下
                type: "POST",//方法类型
                contentType: "application/json;charset=UTF-8",
                dataType: "json",//预期服务器返回的数据类型
                url: "/user/updateYzMoileCode",//url
                // data:{"mobile":$("#mobile").val(),"password":$("#password").val()},  $('#loginUserFrom').serialize(),
                data: JSON.stringify({
                    "mobile": mobile,
                    "imageCode":imgCode
                }),
                success: function (result) {
                    var json = eval(result);

                    if (json.code == 200) {
                        var sendNum = 60
                        var send_Timer = null
                        var _this = $('.personal-yanzhengma-send')
                        _this.attr('disabled', true)
                        send_Timer = setInterval(function () {
                            if (sendNum == 0) {
                                sendNum = 60
                                _this.html('发送验证码')
                                clearInterval(send_Timer)
                                _this.attr('disabled', false)
                            } else {
                                sendNum--
                                _this.html('重新发送(' + sendNum + ')')
                            }
                        }, 500);

                    }
                    ;
                    if (json.code == 500) {
                        var data = json.msg;
                        $(".yz-personal-null-error").html(data);

                    }
                    ;

                }
            });

        });



        function daojishi() {

            var sendNum = 60
            var send_Timer = null
            var _this = $(this)
            _this.attr('disabled', true)
            send_Timer = setInterval(function () {
                if (sendNum == 0) {
                    sendNum = 60
                    _this.html('发送验证码')
                    clearInterval(send_Timer)
                    _this.attr('disabled', false)
                } else {
                    sendNum--
                    _this.html('重新发送(' + sendNum + ')')
                }
            }, 500);

        }

    </script>




    <!-- 更换手机号弹框 -->
    <div class="mobile-number-Verification change-mphone-num clearfix">
        <h1>更改绑定手机号码<span id="change-mphone-num-del"><i class="iconfont">&#xe61e;</i></span></h1>
        <div class="personal-nickname change-mphone-num-now change-mphone-num-now1">
            <i>当前手机号码：</i>
            <input maxlength="11" oninput="value=value.replace(/[^\d]/g,'')" type="text" id="personal-nickname-text"  class="change-now-mobile" value=""><br>
            <span class="personal-null">

					</span>
        </div>
        <div class="personal-nickname change-mphone-num-now">
            <i>当前密码：</i>
            <input type="text" id="personal-nickname-text" class="change-now-password" value=""><br>
            <span class="personal-null">

					</span>
        </div>
        <div class="personal-nickname change-mphone-num-now change-mphone-num-now3">
            <i>绑定新的手机号：</i>
            <input type="text" id="personal-nickname-text"  class="change-new-mobile2" value="" maxlength="11" oninput="value=value.replace(/[^\d]/g,'')" ><br>
            <span class="personal-null">

					</span>
        </div>

        <div class="personal-nickname personal-mobile-yanzhengma">
            <i>&nbsp; 图形验证码：</i>
            <input type="text" id="personal-nickname-text"   class="change-imgcode" >
            <img style="width:100px;height: 40px;float: right;margin-right: 5px;"  src="/sso/login/getLoginVerify" onclick="getLoginVerify(this);">
            <br>
            <span class="personal-null">

					</span>
        </div>


        <div class="personal-nickname personal-mobile-yanzhengma">
            <i>&nbsp;短信验证码：</i>
            <input type="text" id="personal-nickname-text" value="" maxlength="4" oninput="value=value.replace(/[^\d]/g,'')"  class="change-mobile-code" >
            <button type="button" class="personal-yanzhengma-send" id="personal-yanzhengma-send-mobile">发送验证码</button>
            <br>
            <span class="personal-null" id="chang-mobile-personal-null">
					</span>
        </div>
        <div class="personal-btn">
            <button type="button" id="personal-define" class="mobile-number-btn1">确定</button>
            <button type="button" id="personal-cancel" class="mobile-number-cancel1">取消</button>
        </div>
    </div>
    <script>
        $('.mobile-number-btn1').click(function() {
            var mobile = $(".change-now-mobile").val();
            var nowPassword = $(".change-now-password").val();
            var newMobile = $(".change-new-mobile2").val();
            var imgCode = $(".change-imgcode").val();
            var mobileCode = $(".change-mobile-code").val();

            $.ajax({
                //几个参数需要注意一下
                type: "POST",//方法类型
                contentType: "application/json;charset=UTF-8",
                dataType: "json",//预期服务器返回的数据类型
                url: "/user/updateChangMoile",//url
                // data:{"mobile":$("#mobile").val(),"password":$("#password").val()},  $('#loginUserFrom').serialize(),
                data: JSON.stringify({
                    "mobile":mobile,
                    "password":nowPassword,
                    "newMobile": newMobile,
                    "imageCode":imgCode,
                    "zhucecode":mobileCode
                }),
                success: function (result) {
                    var json = eval(result);

                    if (json.code == 200) {
                        $('.motaiceng').hide();
                        $('.change-mphone-num').hide();
                        window.location.href = "/user/logOut";

                    }
                    ;
                    if (json.code == 500) {
                        var data = json.msg;
                        $("#chang-mobile-personal-null").html(data);

                    }
                    ;

                }
            });




            /*$('.motaiceng').hide();
            $('.change-mphone-num').hide();*/
        })



        // 修改手机号码，手机短信发送
        $('#personal-yanzhengma-send-mobile').on('click', function() {

            var newMobile = $(".change-new-mobile2").val();
            var imgCode = $(".change-imgcode").val();


            if(newMobile==null || newMobile==""){
                $("#chang-mobile-personal-null").html("绑定新的手机号不能为空!");
                return ;
            }
            $("#chang-mobile-personal-null").html("");

            if(imgCode==null || imgCode==""){
                $("#chang-mobile-personal-null").html("图形验证码不能为空!");
                return ;
            }
            $("#chang-mobile-personal-null").html("");

            $.ajax({
                //几个参数需要注意一下
                type: "POST",//方法类型
                contentType: "application/json;charset=UTF-8",
                dataType: "json",//预期服务器返回的数据类型
                url: "/user/updateChangMoileCode",//url
                // data:{"mobile":$("#mobile").val(),"password":$("#password").val()},  $('#loginUserFrom').serialize(),
                data: JSON.stringify({
                    "newMobile": newMobile,
                    "imageCode":imgCode
                }),
                success: function (result) {
                    var json = eval(result);

                    if (json.code == 200) {
                        $("#chang-mobile-personal-null").html("手机短信已经发送!");
                        var sendNum = 60
                        var send_Timer = null
                        var _this = $('#personal-yanzhengma-send-mobile')
                        _this.attr('disabled', true)
                        send_Timer = setInterval(function () {
                            if (sendNum == 0) {
                                sendNum = 60
                                _this.html('发送验证码')
                                clearInterval(send_Timer)
                                _this.attr('disabled', false)
                            } else {
                                sendNum--
                                _this.html('重新发送(' + sendNum + ')')
                            }
                        }, 500);


                    }
                    ;
                    if (json.code == 500) {
                        var data = json.msg;
                        $("#chang-mobile-personal-null").html(data);

                    }
                    ;

                }
            });


        })



    </script>



    <!-- 更换邮箱 -->
    <div class="mobile-number-Verification personal-change-email clearfix">
        <h1>更改绑定邮箱<span id="change-mphone-num-del" class="change-mphone-num-del2"><i class="iconfont">&#xe61e;</i></span></h1>
        <div class="personal-nickname personal-change-email-in">
            <i>当前邮箱：</i>
            <input type="text" id="personal-nickname-text" value=""  class="bangding-user-old-email"  ><br>
            <span class="personal-null">

					</span>
        </div>
        <div class="personal-nickname">
            <i>当前密码：</i>
            <input type="password" id="personal-nickname-text" class="bangding-user-old-password" value=""><br>
            <span class="personal-null">

					</span>
        </div>
        <div class="personal-nickname personal-change-email-in3">
            <i>绑定新的邮箱：</i>
            <input type="text" id="personal-nickname-text"  class="bangding-user-new-email" value=""><br>
            <span class="personal-null">

					</span>
        </div>
        <div class="personal-nickname personal-mobile-yanzhengma personal-change-email-in4">
            <i>验证码：</i>
            <input type="text" id="personal-nickname-text" value="" class="bangding-user-new-emailcode" >
            <button type="button" class="personal-yanzhengma-send" id="personal-update-email-send-mobile" >发送验证码</button>
            <br>
            <span class=" personal-null" id="update-user-new-email-errorinfo" style="display: block;color: red; font-size: 14px;">
						</span>
        </div>
        <div class="personal-btn">
            <button type="button" id="personal-define" class="mobile-number-btn3">确定</button>
            <button type="button" id="personal-cancel" class="mobile-number-cancel3">取消</button>
        </div>
    </div>

    <script>

        // 修改邮箱
        /*$('#personal-update-email-send-mobile').on('click', function() {
            var newemail = $(".bangding-user-new-email").val();
            if (newemail==""){
                $("#update-user-new-email-errorinfo").html("请输入新邮箱!");
                return;
            }

            $.ajax({
                //几个参数需要注意一下
                type: "POST",//方法类型
                contentType: "application/json;charset=UTF-8",
                dataType: "json",//预期服务器返回的数据类型
                url: "/updateUserEmailCode",//url
                // data:{"mobile":$("#mobile").val(),"password":$("#password").val()},  $('#loginUserFrom').serialize(),
                data: JSON.stringify({
                    "email": newemail
                }),
                success: function (result) {
                    var json = eval(result);
                    if (json.code == 200) {
                        $("#update-user-new-email-errorinfo").html(json.msg);

                        var sendNum = 60
                        var send_Timer = null
                        var _this = $('#personal-update-email-send-mobile')
                        _this.attr('disabled', true)
                        send_Timer = setInterval(function () {
                            if (sendNum == 0) {
                                sendNum = 60
                                _this.html('发送验证码')
                                clearInterval(send_Timer)
                                _this.attr('disabled', false)
                            } else {
                                sendNum--
                                _this.html('重新发送(' + sendNum + ')')
                            }
                        }, 500);



                    }
                    ;
                    if (json.code == 500) {
                        var data = json.msg;
                        $("#update-user-new-email-errorinfo").html(data);
                    }
                    ;

                }
            });

        })
*/


        $('.mobile-number-btn3').click(function() {
            var newemail = $(".bangding-user-new-email").val();
            var oldemail = $(".bangding-user-old-email").val();
            var oldpassword = $(".bangding-user-old-password").val();
            var emailCode = $(".bangding-user-new-emailcode").val();
            $.ajax({
                //几个参数需要注意一下
                type: "POST",//方法类型
                contentType: "application/json;charset=UTF-8",
                dataType: "json",//预期服务器返回的数据类型
                url: "/updateUserEmail",//url
                // data:{"mobile":$("#mobile").val(),"password":$("#password").val()},  $('#loginUserFrom').serialize(),
                data: JSON.stringify({
                    "email": oldemail,
                    "newemail":newemail,
                    "password":oldpassword,
                    "emailCode":emailCode
                }),
                success: function (result) {
                    var json = eval(result);
                    if (json.code == 200) {

                        $("#update-user-new-email-errorinfo").html(json.msg);
                        $('.motaiceng').hide()
                        $('.personal-change-email').hide()
                        window.location.href = "/user/pcUserInfo";

                    }
                    ;
                    if (json.code == 500) {
                        var data = json.msg;
                        $("#update-user-new-email-errorinfo").html(data);

                    }
                    ;

                }
            });





            /**/
        })




    </script>




    <!-- 修改密码 -->
    <div class="mobile-number-Verification per-change-Password">
        <h1>修改密码<span id="mobile-number-Verification-del" class="mobile-number-Verification-del1"><i class="iconfont">&#xe61e;</i></span></h1>
        <div class="personal-nickname">
            <i>请输入原始密码：</i>
            <input type="text" id="personal-nickname-text"  class="personal-update-user-password" value=""><br>
            <span id="personal-nickname-mull1" class="personal-null">

					</span>
        </div>
        <div class="personal-nickname per-change-Password-in-new">
            <i>请输入新密码：</i>
            <input type="text" id="personal-nickname-text"  class="personal-update-user-new-password" value="">
            <br>
            <span id="personal-nickname-mull" class="personal-null">

					</span>
        </div>
        <div class="personal-nickname">
            <i>请输入确认密码：</i>
            <input type="text" id="personal-nickname-text"  class="personal-update-user-new-passwordl" value="">
            <br>
            <span id="personal-nickname-mull" class="personal-update-password-error" style="color: red;
    margin-left: 140px; display: block; font-size: 14px; margin-top: 10px; height: 15px; ">

					</span>
        </div>
        <div class="personal-btn">
            <button type="button" id="personal-define" class="mobile-number-btn2">确定</button>
            <button type="button" id="personal-cancel" class="mobile-number-cancel2">取消</button>
        </div>
    </div>
</div>


<script>
    $('.mobile-number-btn2').click(function() {

        var password = $(".personal-update-user-password").val();
        var passwordl = $(".personal-update-user-new-password").val();
        var passwordll = $(".personal-update-user-new-passwordl").val();

        if (password.length<6  ){
            $(".personal-update-password-error").html("请输入6位以上的密码!");
            return ;
        }

        if (passwordl.length<6){
            $(".personal-update-password-error").html("请输入6位以上的新密码!");
            return ;
        }
        if (passwordll.length<6){
            $(".personal-update-password-error").html("请输入6位以上确认新密码!");
            return ;
        }



        $.ajax({
            //几个参数需要注意一下
            type: "POST",//方法类型
            contentType: "application/json;charset=UTF-8",
            dataType: "json",//预期服务器返回的数据类型
            url: "/user/updateUserPassword",//url
            // data:{"mobile":$("#mobile").val(),"password":$("#password").val()},  $('#loginUserFrom').serialize(),
            data: JSON.stringify({
                "password": password,
                "passwordl":passwordl,
                "newUserPassword":passwordll
            }),
            success: function (result) {
                var json = eval(result);
                if (json.code == 200) {
                    window.location.href = "/user/logOut";
                }
                ;
                if (json.code == 500) {
                    var data = json.msg;
                    $(".personal-update-password-error").html(data);

                }
                ;

            }
        });






        /*$('.motaiceng').hide()
        $('.per-change-Password').hide()*/
    })


</script>



<!-- 底部 -->
<div class="footer">
    <div class="footer_left">


        <div class="footer_right_top">
            <a href="#">友情链接</a >
            <a href="http://www.mayikt.com/front/couinfo/91/0" target="_blank">SpringCloud视频教程</a >
            <a href="http://www.mayikt.com/front/couinfo/247/0" target="_blank">SpringAlibaba视频教程</a >
            <a href="https://ke.qq.com/course/273548?taid=4086365029674124&tuin=388db9e0" target="_blank">Java架构技术</a >
            <a href="http://bbs.mayikt.com" target="_blank">Java面试宝典</a >
            <a href="https://space.bilibili.com/480840386" target="_blank">余胜军·哔哩哔哩</a >
        </div>

        <div class="footer_right_top">
            <a href="http://wpa.qq.com/msgrd?v=3&uin=483966038&site=qq&menu=yes">帮助中心</a>
            <a href="http://wpa.qq.com/msgrd?v=3&uin=483966038&site=qq&menu=yes">联系我们</a>
            <a href="/licheng">关于我们</a>
            <a href="#">网站地图</a>
            <span>客服小微QQ：483966038</span>
            <span class="footer_email">Email：644064779@.com</span>
            <span>官方粉丝群：835185296</span>
        </div>
        <div class="footer_right_bottom">Copyright ©2016-2021 武汉每特教育科技有限公司 版本所有&nbsp;&nbsp;&nbsp;Powered by&nbsp;&nbsp;蚂蚁课堂&nbsp;&nbsp;&nbsp;<a href="https://beian.miit.gov.cn/" style="color:#4CAF50;">沪ICP备18018606号-2</a></div>
    </div>
    <div class="footer_right">
        <img src="http://static.mayikt.com/gzhewm.png" />
        <span>官方公众号</span>
    </div>
</div>


<style>
    .footer-out {
        background-color: #fff;
    }

    .footer {
        height: 136px;
        width: 1200px;
        margin: auto;
        display: flex;
        justify-content: space-between;
    }

    .footer_right_top {
        padding-top: 36px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(102, 102, 102, 0.1);
    }

    .footer_right_top a {
        position: relative;
        line-height: 15px;
        margin-right: 18px;
        display: inline-block;
        font-size: 14px;
        font-family: PingFang SC;
        font-weight: 500;
        color: rgba(102, 102, 102, 1);
        opacity: 0.6;
    }

    .footer_right_top a::after {
        content: '';
        display: inline-block;
        height: 15px;
        position: absolute;
        top: 0;
        right: -10px;
        border-left: 1px solid rgba(102, 102, 102, 0.6);
    }

    .footer_right_top span {
        font-size: 14px;
        font-family: PingFang SC;
        font-weight: 500;
        color: rgba(102, 102, 102, 1);
        opacity: 0.6;
    }

    .footer_email {
        padding: 0 25px;
    }

    .footer_right_bottom {
        padding-top: 16px;
        padding-bottom: 19px;
        font-size: 14px;
        font-family: PingFang SC;
        font-weight: 500;
        color: rgba(102, 102, 102, 1);
        opacity: 0.6;
    }

    .footer_right {
        width: 90px;
        text-align: center;
    }

    .footer_right img {
        width: 90px;
        height: 90px;
        padding-top: 16px;
        padding-bottom: 5px;
    }

    .footer_right span {
        font-size: 14px;
        font-family: PingFang SC;
        font-weight: 500;
        color: rgba(102, 102, 102, 1);
        opacity: 0.6;
    }
</style>


<script>
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?eaa952b8610db6f155ab0febd442e89a";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
</script>



<script>




    //点击修改个人信息
/*
    $('.update-user-personal-define-true').click(function() {
        var showName = $(".updateUserinfoShowName").val();
        var userName = $(".updateUserinfoUserName").val();
        var age = $(".updateUserinfoAge").val();
        var isAutoSend = document.getElementsByName('sex');
        for (var i = 0; i < isAutoSend.length; i++) {
            if (isAutoSend[i].checked == true) {
                var sex=isAutoSend[i].value;
            }
        }

        if(showName==""){
            $("#updateUserinfoShowNameError").html("请输入昵称!");
            return;
        }

        if(userName==""){
            $("#updateUserinfoUserNameError").html("请输入姓名!");
            return;
        }

        if(age==""){
            $("#updateUserinfoAgeError").html("请输入年龄!");
            return;
        }


        $.ajax({
            //几个参数需要注意一下
            type: "POST",//方法类型
            contentType: "application/json;charset=UTF-8",
            dataType: "json",//预期服务器返回的数据类型
            url: "/user/updateUserInfo",//url
            // data:{"mobile":$("#mobile").val(),"password":$("#password").val()},  $('#loginUserFrom').serialize(),
            data: JSON.stringify({
                "showName": showName,
                "userName":userName,
                "age":age,
                "sex":sex

            }),
            success: function (result) {
                var json = eval(result);
                if (json.code == 200) {
                    $('.motaiceng').hide();
                    $('.personal-editor').hide();
                    window.location.href = "/user/pcUserInfo";
                }
                ;
                if (json.code == 500) {
                    var data = json.msg;
                    $("#updateUserinfoAgeError").html(data);
                }
                ;

            }
        });
    });
*/





    //验证手机号码
    $('.mobile-number-btn').click(function() {

        var mobile = $(".yz-personal-mobile").val();
        var imgCode = $(".yz-personal-imgcode").val();
        var zhucecode = $(".yz-personal-mobilecode").val();

        if (mobile=="") {
            $(".yz-personal-null-error").html("请输入手机号码!");
            return;
        }
        if (imgCode=="") {
            $(".yz-personal-null-error").html("请输入图形验证码!");
            return;
        }

        if (zhucecode=="") {
            $(".yz-personal-null-error").html("请输入短信验证码!");
            return;
        }

        $.ajax({
            //几个参数需要注意一下
            type: "POST",//方法类型
            contentType: "application/json;charset=UTF-8",
            dataType: "json",//预期服务器返回的数据类型
            url: "/user/updateYzMobile",//url
            // data:{"mobile":$("#mobile").val(),"password":$("#password").val()},  $('#loginUserFrom').serialize(),
            data: JSON.stringify({
                "mobile": mobile,
                "imageCode":imgCode,
                "zhucecode":zhucecode
            }),
            success: function (result) {
                var json = eval(result);
                if (json.code == 200) {

                    $('.motaiceng').hide();
                    $('.change-mphone-num').hide();

                    window.location.href = "/user/pcUserInfo";
                    ß

                }
                ;
                if (json.code == 500) {
                    var data = json.msg;
                    $(".yz-personal-null-error").html(data);

                }
                ;

            }
        });


    })





</script>

</body>
</html>
